package com.deep.order;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 订单模块启动类
 *
 * @author Deep
 * @date 2022/1/13
 */
@EnableRedisHttpSession     // 开启redis存储session功能
@EnableRabbit   // 开启RabbitMQ监听消息队列
@EnableFeignClients(basePackages = "com.deep.order.feign")
@EnableDiscoveryClient
@SpringBootApplication
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }
}
